home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-23 | 2.4 KB | 56 lines | [TEXT/MPS ] |
- # To build this example, choose the "Build…" menu item from within
- # the "Build" menu in MPW. When asked for Program Name, type in the
- # script name, in this case "myFileSearchProc" ( without double quotes )
- # and press the Enter key. Be sure that the Current Working Directory
- # for MPW is set to the directory containing this example.
-
- # To build the Debugger version of this example, choose the "Build…"
- # menu item from within the "Build" menu in MPW. When asked for Program
- # Name, type in the script name, in this case "myFileSearchProc.debug"
- # ( without double quotes ) and press the Enter key. Be sure that the Current
- # Working Directory for MPW is set to the directory containing this example.
-
- scriptName = myFileSearchProc
- debugScriptName = "{scriptName}.debug"
-
- ScriptCheckDir = :::Tools:Released:ScriptCheck 4.0.3:
- InstallerRIncDir = :::DeveloperInterfaces:RIncludes:
- InstallerDebuggerDir = :::Tools:Released:Installer Debugger 4.0.3:
- InstallerCSrcDir = :::DeveloperInterfaces:CSources:
- InstallerCIncDir = :::DeveloperInterfaces:CIncludes:
-
- # You may use this makefile to compile your own Search Procedure code segment.
- # Just replace the 'sourceFile' value "FindTargetFile" with the name of your
- # source file ( without the .c extension ).
- sourceFile = FindTargetFile
-
-
- OBJECTS = {sourceFile}.c.o
- COptions = -b -r -sym off
- LinkOptions = -mf -sym off
-
- # create debug version of the installer script
- "{debugScriptName}" ƒ "{scriptName}"
- Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
- Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
-
- # create installer script
- "{scriptName}" ƒ "{sourceFile}" "{scriptName}.r"
- set theTime "'`date -d -s` 12:00:00 PM'"
- Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
- SetFile -a b -d {theTime} {scriptName}
- "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
- SetFile -m {theTime} "{scriptName}"
-
- # link the object file for the search procedure code segment
- "{sourceFile}" ƒ Makefile "{OBJECTS}"
- # be sure to specify the same 'infn' ID# as the one in 'insp' definition in .r file
- Link {LinkOptions} -t rsrc -c RSED -rt infn=20 -m "{sourceFile}" -sg "{sourceFile}" ∂
- "{OBJECTS}" ∂
- "{Libraries}Interface.o" ∂
- "{Libraries}"MacRuntime.o ∂
- -o "{sourceFile}.rsrc"
-
- "{OBJECTS}" ƒ Makefile "{sourceFile}.c"
- SC {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
-